
package hasthi.container.notifier;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.xmlbeans.XmlObject;

import wsmg.WseClientAPI;

import hasthi.common.HasthiException;
import hasthi.common.ManagementNotifier;
import hasthi.common.constants.HasthiConstants;

public class WSMessengerNotifier implements ManagementNotifier{
    protected static Log log = LogFactory.getLog(HasthiConstants.AGENT_LOGGER_NAME);
//    private String brokerUrl;
//    private String topic;
    private String name;
//    private WseClientAPI  clientAPI;
    
    public WSMessengerNotifier(String brokerUrl, String topic, String name) {
//        this.brokerUrl = brokerUrl;
//        this.topic = topic;
//        this.name = name;
//        clientAPI = new WseClientAPI();
    }

    public String getName() {
        return name;
    }

    public void sendEvent(XmlObject eventData) {
//        clientAPI.publish(brokerUrl,topic,eventData.xmlText());
    }

    public boolean sendingEventFalied(Exception e) {
        log.warn("Sending event failed "+e.getMessage());
        return false;
    }
    
    public void shutDown()throws HasthiException{}
}

